/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jdbc.dataAccess;

import com.jdbc.dataAccess.Oracle.ParameterDirection;

/******************************************************************************
 * 
 * @autor   robert.baron
 * @since       05-abr-2013
 * 
 *******************************************************************************/
public class DBParameters {
      
      private int direction;
      private int type;
      private String name;
      private Object value;

      public int getDirection() {
            return direction;
      }

      public void setDirection(int direction) {
            
            if (direction != ParameterDirection.IN ||direction != ParameterDirection.OUT||direction != ParameterDirection.IN_OUT )
                  throw new IllegalArgumentException("Direction: " + direction + " is not valid");
            
            this.direction = direction;
      }

      public String getName() {
            return name;
      }

      public void setName(String name) {
            this.name = name;
      }

      public int getType() {
            return type;
      }

      public void setType(int type) {
            this.type = type;
      }

      public Object getValue() {
            return value;
      }

      public void setValue(Object value) {
            this.value = value;
      }
}
